package bank;

public class Card {
	String id;
	String password;
	 int balance;
	
	
	public void withdraw(int amount) {
		if(amount > balance) {
			System.out.println("not enough money!");
		}
		
		balance -= amount;
		
	}
	public void changePassword(String password) {
		
		//shadowing
		this.password = password;
	}

}
